<?php

/**
 * A single email.
 *
 * @author tobias.vogel
 */
class Db_Mails extends Common {

	protected static $tableName = TAB_MAILS;
	protected static $dbFields = array(
		'id',
		'mbx_mailbox_id',
		'or_order_id',
		'ml_subject',
		'ml_body_plain',
		'ml_body_html',
		'ml_from',
		'ml_to',
		'ml_cc',
		'ml_datetime',
		'ml_message_id',
		'ml_references',
		'ml_in_reply_to',
		'deleted'
	);

	/**
	 * @var Db_Mails	 */
	public $objectArray;
	public $id;
	public $mbx_mailbox_id;
	public $or_order_id;
	public $ml_subject;
	public $ml_body_plain;
	public $ml_body_html;
	public $ml_from;
	public $ml_to;
	public $ml_cc;
	public $ml_datetime;
	public $ml_message_id;
	public $ml_references;
	public $ml_in_reply_to;
	public $deleted;

	function __construct($value = NULL, $fieldName = NULL) {
		parent::__construct($value, $fieldName);
	}

}
